package p270jp.pxv.android.viewholder;

import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p270jp.pxv.android.model.pixiv_sketch.LiveWebSocketMessage;
import p314lg.ViewHolderRenewalLiveHeartBinding;
import p325m0.MutabilityOwnership;
import p371nj.LiveChatState;
import p652yj.C7346b;

/* compiled from: RenewalLiveHeartViewHolder.kt */
/* renamed from: jp.pxv.android.viewholder.RenewalLiveHeartViewHolder */
/* loaded from: classes2.dex */
public final class RenewalLiveHeartViewHolder extends RecyclerView.AbstractC0819y {
    private final ViewHolderRenewalLiveHeartBinding binding;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: RenewalLiveHeartViewHolder.kt */
    /* renamed from: jp.pxv.android.viewholder.RenewalLiveHeartViewHolder$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final RenewalLiveHeartViewHolder createViewHolder(ViewGroup viewGroup) {
            ViewHolderRenewalLiveHeartBinding s8Var = (ViewHolderRenewalLiveHeartBinding) C7346b.m327a(viewGroup, "parent", R.layout.view_holder_renewal_live_heart, viewGroup, false);
            MutabilityOwnership.m3746l(s8Var, "binding");
            return new RenewalLiveHeartViewHolder(s8Var, null);
        }
    }

    private RenewalLiveHeartViewHolder(ViewHolderRenewalLiveHeartBinding s8Var) {
        super(s8Var.f2666e);
        this.binding = s8Var;
    }

    public /* synthetic */ RenewalLiveHeartViewHolder(ViewHolderRenewalLiveHeartBinding s8Var, DefaultConstructorMarker eVar) {
        this(s8Var);
    }

    public final void display(LiveChatState.C5361e eVar) {
        MutabilityOwnership.m3745m(eVar, LiveWebSocketMessage.TYPE_HEART);
        this.binding.mo3772z(eVar);
        this.binding.m11392i();
    }
}
